import React from 'react';
import Header from './common/header';
import store from './store';
import { Provider } from 'react-redux';
import Home from './page/home';
import Detail from './page/detail';
import { BrowserRouter, Route } from 'react-router-dom';
function App() {
  return (
        <Provider store={store}>
            <div>
                <Header />
                <BrowserRouter>
                    <div>
                        <Route path='/' component={Home}></Route>
                        <Route path='/detail' component={Detail}></Route>
                    </div>
                </BrowserRouter>
            </div>
        </Provider>
  );
}

export default App;
